﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChiTietHoaDonXuatList.aspx.cs" Inherits="WebApplication.Admin.ChiTietHoaDonXuatList" MasterPageFile="~/Admin/Web.Master" %>
<asp:Content ContentPlaceHolderID="Header" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderID="maint" runat="server">
    <div style="float:right">
<asp:LinkButton runat="server" ID="lbtnthemmoi" CssClass="btn btn-info" onclick="lbtnthemmoi_Click" 
              >Thêm mới</asp:LinkButton>
</div><br />
<fieldset>
<legend>Tìm kiếm</legend>
<div>
Mã hóa đơn
<input type="text" runat="server" id="txtmahd"/> &nbsp Tên khách hàng :<input type="text" id="txttenkh" runat="server" />
 <asp:LinkButton runat="server" ID="ltbntimkiem" CssClass="btn btn-info" onclick="ltbntimkiem_Click" 
              >Tìm kiếm</asp:LinkButton>
</div>
</fieldset>
<div style="margin-top:25px">
 <asp:GridView ID="grHoadonxuat" runat="server" 
        CssClass="table table-striped table-bordered table-hover" 
        AutoGenerateColumns="False" onrowcommand="grHoadonxuat_RowCommand" 
        onrowdatabound="grHoadonxuat_RowDataBound" AllowPaging="True" OnSelectedIndexChanging="grHoadonxuat_SelectedIndexChanging">
     <Columns>
     <asp:TemplateField HeaderText="STT">
      <ItemTemplate>
        <%# Container.DataItemIndex+1 %>
      </ItemTemplate>
     </asp:TemplateField>
     <asp:TemplateField HeaderText="Mặt hàng">
      <ItemTemplate>
       <asp:Label ID="lbmathang" runat="server"></asp:Label>
      </ItemTemplate>
     </asp:TemplateField>
     <asp:TemplateField HeaderText="Khách hàng">
      <ItemTemplate>
         <asp:Label ID="lbkhachhang" runat="server"></asp:Label>
      </ItemTemplate>
     </asp:TemplateField>
          <asp:TemplateField HeaderText="Nhân viên">
      <ItemTemplate>
         <asp:Label ID="lbnhanvien" runat="server"></asp:Label>
      </ItemTemplate>
     </asp:TemplateField>
     <asp:BoundField DataField="GIATIEN" HeaderText="Đơn giá" />
          <asp:TemplateField HeaderText="Tổng tiền">
      <ItemTemplate>
         <asp:Label ID="lbtongtien" runat="server"></asp:Label>
      </ItemTemplate>
     </asp:TemplateField>
         <asp:BoundField DataField="MAHDX" HeaderText="Mã hóa đơn xuất" />
         <asp:BoundField DataField="SOLUONGXUAT" HeaderText="Số lượng xuất" />
          <asp:TemplateField HeaderText="Ngày xuất">
      <ItemTemplate>
         <asp:Label ID="lbngayxuat" runat="server"></asp:Label>
      </ItemTemplate>
     </asp:TemplateField>
     <asp:TemplateField HeaderText="Ngày xuất">
      <ItemTemplate>
         <asp:Label ID="lbtinhtrang" runat="server"></asp:Label>
      </ItemTemplate>
      </asp:TemplateField>
     <asp:TemplateField HeaderText="Chức năng">
       <ItemTemplate>
          <asp:LinkButton runat="server" ID="lbtnsua" CommandName="lbtnsua" CommandArgument='<%#Bind("MAHDX") %>'><i class="icon-pencil bigger-130"></i></asp:LinkButton>
          <asp:LinkButton runat="server" ID="lbtnxoa" CommandName="lbtnxoa" CommandArgument='<%#Bind("MAHDX") %>' OnClientClick="return confirm('Bạn có muốn xóa không ?');"><i class="icon-trash bigger-130 red"></i></asp:LinkButton>
       </ItemTemplate>
     </asp:TemplateField>
     </Columns>
 </asp:GridView>
</div>
</asp:Content>
